<%--
  Created by IntelliJ IDEA.
  User: 刘邓
  Date: 2023-06-10
  Time: 8:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>管理员用户主页</title>
    <style>
        * {
            padding: 0;
            margin: 0;
            box-sizing: border-box;
        }
        h2 {
            text-align: center;
            margin-top: 20px;
        }
        .container {
            width: 500px;
            height: 500px;
            margin: 10px auto;
            border: 1px solid red;
            display: flex;
            flex-direction: column;
            align-items: center;
            background-color: #f5f5f5;
            list-style-type: none;
            justify-content: space-evenly;
        }

        li {
            display: inline-block;
            padding: 20px;
            background-color: #fff;
            border-radius: 4px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        li a {
            color: #ff4b2b;
            text-decoration: none;
        }

        li:hover {
            background-color: #e0e0e0;
        }
    </style>
</head>
<body>
<h3 style="margin: 10px 20px">用戶名:${user.username}</h3>
<a href="/index.jsp" style="float: left;color: #7B68EE;margin: 10px 20px" id="exitLogin">退出登录</a><br>
<div>
    <h2>欢迎使用学生选课系统管理员端</h2>
    <ul class="container">
        <li>
            <a href="/home/admin/user.jsp">用户管理</a>
        </li>
        <li>
            <a href="/home/admin/course.jsp">课程管理</a>
        </li>
        <li>
            <a href="/home/admin/studentCourse.jsp">选课信息管理</a>
        </li>
        <li>
            <a href="/home/admin/teachingClass.jsp">教学班信息</a>
        </li>
        <li>
            <a href="/home/admin/xsTeachingClass.jsp">教学班学生</a>
        </li>
    </ul>
</div>
</body>
<script>
    let exit = document.getElementById("exitLogin");
    exit.addEventListener("click",function (e){
        let a = confirm("确定要退出吗?");
        if(a == false){
            e.preventDefault();
        }
    })
</script>
</html>
